//
//  YTTwoLevelCell.m
//  YUNT
//
//  Created by 梁炜东 on 2017/11/13.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import "YTTwoLevelCell.h"

@implementation YTTwoLevelCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.userInteractionEnabled = YES;
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}
-(void)configData:(NSArray *)arr
{
    
    if (publicModel.photoModel == 0)
    {
        if (_indexPath.row == publicModel.modelSingle)
        {
            self.imageView.image = IMAGE(arr[1]);
        }else
        {
            self.imageView.image = IMAGE(arr[0]);
        }
    }else if (publicModel.photoModel == 1)
    {
        if (_indexPath.row == publicModel.modelFull)
        {
            self.imageView.image = IMAGE(arr[1]);
        }else
        {
            self.imageView.image = IMAGE(arr[0]);
        }
    }else if (publicModel.photoModel == 2)
    {
        if (_indexPath.row == publicModel.modelLong)
        {
            self.imageView.image = IMAGE(arr[1]);
        }else
        {
            self.imageView.image = IMAGE(arr[0]);
        }
    }
}
@end
